package org.zjx.common.route.routes;


import lombok.SneakyThrows;
import org.zjx.common.route.AbstractRoute;
import org.zjx.common.route.bean.Address;

/**
 * 使用飞行符
 */
public class FlyingCharmsRoute extends AbstractRoute {
    @SneakyThrows
    public FlyingCharmsRoute(Address startAddress, String cityName) {
        super(startAddress, null, 3);
        if (startAddress == null || cityName.isEmpty()) throw new NullPointerException();
        switch (cityName) {
            case "长寿村":
                endAddress = new Address("长寿村",111,61);
                break;
            case "西梁女国":
                endAddress = new Address("西梁女国",101,28);
                break;
            case "宝象国":
                endAddress = new Address("宝象国",115,70);
                break;
            case "朱紫国":
                endAddress = new Address("朱紫国",140,93);
                break;
            case "长安城":
                endAddress = new Address("长安城",361,243);
                break;
            case "建邺城":
                endAddress = new Address("建邺城",65,30);
                break;
            case "傲来国":
                endAddress = new Address("傲来国",123,94);
                break;
        }

    }



}
